﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    public static class SQLServerLoggerExtensions
    {
        public static ILoggingBuilder AddSqlServer(this ILoggingBuilder builder, string connectionString)
        {

            builder.AddProvider(new SQLServerLoggerProvider(connectionString));
            return builder;
        }
    }
}
